<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<s:set name="lang" var="lang" value="'application'" />
<s:if test="%{#session.WW_TRANS_I18N_LOCALE != null}">
	<s:set var="lang"
		value="'application_' + #session.WW_TRANS_I18N_LOCALE" />
</s:if>

<s:i18n name="application">
<s:form name="form" id="form" method="post" action="deleteMyAdvertising.htm">
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
		<tbody>
			<tr>
				<td class="style4" align="left">
					<div class="blue-text16" style="margin: 0px 0px 0px 0px">
						<s:text name="advertisements.title" />
					</div>
					<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
				</td>
				<td align="right"></td>

			</tr>
		</tbody>
	</table>
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
		<!--------------------------------------------------------->
		<tbody>
			<tr>
				<td width="100%">
					<table border="0" cellpadding="6" cellspacing="1" width="100%">
						<tbody>
							<tr>
								<td>
									<s:actionerror cssClass="error-text" />
									<s:actionmessage cssClass="error-text" />
								</td>
							</tr>
							<tr>
								<td width="3%" rowspan="3"
									class="grid-header-bg grid-header-text">
									<input type="checkbox" class="textfiled" name="Check_ctr"
										value="yes"
										onchange="CheckCheckAll(document.form.Check_ctr, document.form.check_list)" />
								</td>
								<td width="8%" rowspan="3" align="center" valign="top"
									class="grid-header-bg grid-header-text">
									Photo
								</td>
								<td width="36%" align="center" valign="top"
									class="grid-header-bg grid-header-text">
									<s:a cssClass="grid-header-text" href="myadvertisements.htm"> Title </s:a>
								</td>
								<td width="18%" align="center" valign="top"
									class="grid-header-bg grid-header-text">
									<s:text name="companyProfile.watching" />
								</td>

								<td width="17%" rowspan="3" align="center" valign="top"
									class="grid-header-bg grid-header-text">
									<s:a cssClass="grid-header-text" href="myadvertisements.htm"> Time left </s:a>
									<a href="myadvertisements.htm"></a>
								</td>
								<td width="18%" rowspan="3" align="center" valign="top"
									class="grid-header-bg grid-header-text">
									<s:text name="sellingauction.action" />
								</td>
							</tr>
							<tr>
								<td class="grid-header-bg grid-header-text" align="center"
									valign="top">
									<s:text name="advertisingWatchingothers.subtitle" />
								</td>
								<td class="grid-header-bg grid-header-text" align="center"
									valign="top">
									<s:text name="companyProfile.views" />
								</td>
							</tr>

							<tr>
								<td class="grid-header-bg grid-header-text" align="center"
									valign="top">
									<s:text name="sellingauction.itemnr" />
								</td>
								<td class="grid-header-bg grid-header-text" align="center"
									valign="top">
									<s:text name="sellingsold.status" />
								</td>
							</tr>
							<tr>
								<td colspan="6">
									<display:table name="itemsList" cellpadding="1" length="3"
										style="width: 100%;" cellspacing="1" requestURI="" id="row"
										class="common-text"
										pagesize="${listingOptions.listingsItemsPerPage}">
										<display:column class="grid-bg common-text">
											<table width="100%" border="0">
												<tr>
													<td rowspan="3" width="3%" align="center" valign="top"
														class="grid-bg common-text">
														<input type="checkbox" class="textfiled" id="check_list"
															value="<s:property value="#attr.row.itemId"/>"
															name="check_list" />
													</td>
													<td rowspan="3" width="8%" align="center" valign="middle"
														class="grid-bg common-text">
														<s:if test="#attr.row.image != null">
															<a href="showItem.htm?cid=<s:property value="#attr.row.itemId"/>&p=createAuction" title="<s:property value="#attr.row.title"/>">
																<img
																	src="servlet/ImageServlet?dto=ItemsDTO&id=<s:property value="#attr.row.itemId"/>"
																	alt="" class="product-border" height="45" width="45">
															</a>
														</s:if>
														<s:else><img src="images/no_image.gif" alt="Photo"></s:else>
													</td>
													<td align="center" width="36%" valign="top"
														class="grid-bg common-text">
														<a
															href="showItem.htm?cid=<s:property value="#attr.row.itemId"/>&p=createAuction"
															title="<s:property value="#attr.row.title"/>"> <s:property
																value="#attr.row.title" /> </a>
													</td>
													<td width="18%" align="center" valign="top"
														class="grid-bg common-text">
														<s:property value="#attr.row.noOfWatches" />
													</td>

													<td rowspan="3" align="center" valign="top"
														class="grid-bg common-text" width="18%">
														<s:if test="%{#attr.row.closed == true}">
															<span class="error-text"><b>Closed</b> </span>
															<s:date name="#attr.row.endTime"
																format="dd/MM/yyyy hh:mm:ss" />
														</s:if>
														<s:else>
															<s:date name="#attr.row.endTime" nice="true" />
														</s:else>
													</td>
													<td align="center" valign="top" class="grid-bg common-text"
														id="mddm" width="17%">
														<a href="#" class="common-link"
															onmouseover="mopen('<s:property value="#attr.row.itemId" />', this, 'common-link', 'right', <s:property value="#attr.row.itemId" />)"
															onmouseout="mclosetime()">Select</a>
														<div id="<s:property value="#attr.row.itemId" />"
															onmouseover="mcancelclosetime()"
															onmouseout="mclosetime()" style="visibility: hidden">
															<a href="deleteMyAdvertising.htm?itemId=<s:property value="#attr.row.itemId" />&deleteItem=true&action=myadvertisements.htm">Delete</a>
															<a href="createAdvertisement.htm?cid=<s:property value="#attr.row.itemId" />">Edit item</a>
															<a
																href="submitSimilarItem.htm?cid=<s:property value="#attr.row.itemId" />&action=submitsimilar">Submit
																similar item</a>
															<a
																href="createAdvertisement.htm?cid=<s:property value="#attr.row.itemId" />&action=copyitem">Copy
																item data</a>
															<s:if
																test="#attr.row.itemNote.id != null && #attr.row.itemNote.id != 0">
																<a
																	href="addNotes.htm?cid=<s:property value="#attr.row.itemNote.id" />&action=editnote&p=myadvertisements.htm">Edit
																	note</a>
															</s:if>
															<s:else>
																<a
																	href="addNotes.htm?cid=<s:property value="#attr.row.itemId" />&action=addnote&p=myadvertisements.htm">Add
																	note</a>
															</s:else>
														</div>
													</td>
												</tr>
												<tr>
													<td width="18%" class="grid-bg common-text" align="center" valign="top">
														<s:property value="#attr.row.subTitle" />
													</td>
													<td class="grid-bg common-text" align="center" valign="top">
														<s:property value="#attr.row.views" />
													</td>
												</tr>

												<tr>
													<td class="grid-bg common-text" align="center" valign="top">
														<s:property value="#attr.row.itemId" />

														<s:if test="#attr.row.HomePageFeatured == true">
															<img src="images/featured.gif" title="Featured"
																border="0">
														</s:if>
														<s:if
															test="#attr.row.bids.size >= listingOptions.coolItemBids">
															<!-- bids.size >= listingOptions.coolItemBids -->
															<img src="images/cool.gif" title="Cool" border="0">
														</s:if>
														<s:elseif
															test="#attr.row.bids.size >= listingOptions.hotItemBids">
															<!-- bids.size >= listingOptions.coolItemBids -->
															<img src="images/hot.gif" title="Hot" border="0">
														</s:elseif>
														<s:if test="#attr.row.buyPrice > 0.0">
															<img src="images/buyitnow.gif" title="Buy Now" border="0">
														</s:if>
													</td>
													<td class="grid-bg common-text" align="center" valign="top">
														<s:property value="#attr.row.status.status" />
													</td>
												</tr>
												<tr>
													<td class="common-text" colspan="9" bgcolor="#ffffdd">
														<s:property value="#attr.row.itemNote.note" />
													</td>
												</tr>
												</table>
										</display:column>
									</display:table>
								</td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>


			<tr>
				<td width="100%">
					<table border="0" cellpadding="0" cellspacing="0" width="100%">
						<tbody>
							<tr>

								<td align="left" valign="top">
									<table border="0" cellpadding="0" cellspacing="0">
										<tbody>
											<tr>
												<td>
													<table border="0" cellspacing="0" cellpadding="0">
														<tr>
															<td>
																<img src="images/middle/btn-grey-left1.gif" alt=" "
																	width="6" height="23" />
															</td>
															<td class="btn-grey-middle1 ">
																<s:submit theme="simple" name="deleteMsg" value="Delete" cssClass="submit-btn-common" ></s:submit>
															</td>
															<td>
																<img src="images/middle/btn-grey-right1.gif" alt=" "
																	width="6" height="23" />
															</td>
														</tr>
													</table>
												</td>
											</tr>
										</tbody>
									</table>
								</td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
			<!--------------------------------------------------------->
		</tbody>
	</table>
	</s:form>
<script>
function doListAction(action) {
  document.ItemListForm.ListAction.value = action;
  document.ItemListForm.submit();
}

function toggleSelection() {
  var mpcbs = document.ItemListForm.elements;
  for (i = 0; i < mpcbs.length; i++)
    if (mpcbs[i].type == 'checkbox' && mpcbs[i].name.indexOf('MPID') == 0)
      mpcbs[i].checked = !mpcbs[i].checked;
}
</script>
</s:i18n>
